package com.example.mapper;

import com.example.config.MyMapper;
import com.example.entity.People;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface PeopleMapper extends MyMapper<People> {

    List<People> findAllPeople();

    People findById(@Param("id") Integer id);

    int add(People people);
}